﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.Master" AutoEventWireup="true" CodeBehind="QuanLyNhaCungCap.aspx.cs" Inherits="QLHieuThuocFull.QuanLyNhaCungCap" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="NhaCCSource" KeyFieldName="MANCC">
        <Columns>
            <dx:GridViewCommandColumn SelectAllCheckboxMode="Page" ShowDeleteButton="True" 
                ShowEditButton="True" ShowNewButtonInHeader="True" ShowSelectCheckbox="True" 
                VisibleIndex="0">
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="Tên nhà cung cấp" FieldName="TENNCC" 
                VisibleIndex="1">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Quận, Huyện" FieldName="QUAN_HUYEN" 
                VisibleIndex="4">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Địa chỉ" FieldName="DIACHI" 
                VisibleIndex="5">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Số điện thoại" FieldName="SODIENTHOAI" 
                VisibleIndex="6">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Fax" FieldName="FAX" VisibleIndex="7">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Ghi chú" FieldName="GHICHU" 
                VisibleIndex="9">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataComboBoxColumn Caption="Tỉnh" FieldName="MATINH" 
                VisibleIndex="3">
                <PropertiesComboBox DataSourceID="TinhSource" TextField="TENTINH" 
                    ValueField="MATINH">
                </PropertiesComboBox>
            </dx:GridViewDataComboBoxColumn>
            <dx:GridViewDataTextColumn Caption="Mã số thuế" FieldName="MASOTHUE" 
                VisibleIndex="8">
            </dx:GridViewDataTextColumn>
        </Columns>
        <Settings ShowFilterRow="True" ShowGroupPanel="True" />
    </dx:ASPxGridView>
    <asp:LinqDataSource ID="NhaCCSource" runat="server" 
        ContextTypeName="QLHieuThuocFull.QLDUOCDataContext" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" TableName="NHACCs">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="TinhSource" runat="server" 
        ContextTypeName="QLHieuThuocFull.QLDUOCDataContext" TableName="TINHTHANHs">
    </asp:LinqDataSource>
</asp:Content>
